<template>
  <div class="wrapper">
    <!--    标题栏    -->
    <div class="membershipWrapper">
      <div class="revertWrapper">
        <img class="revertImg" src="../../../../src/assets/static/publicImg/back.png">
      </div>
      <div class="membershipTitleWrapper">
        <span class="membership">会员</span>
      </div>
    </div>
    <!--    内容    -->
    <div class="membershipInfoWrapper">
      <!--    会员卡片    -->
      <div class="membershipCardWrapper">
        <!--    会员卡片信息    -->
        <div class="membershipCardInfoWrapper">
          <!--    会员等级    -->
          <div class="membershipLevelWrapper">
            <span class="membershipLevel">成员</span>
          </div>
          <!--    进度条和图标    -->
          <div class="membershipProgressWrapper">
            <!--    左侧进度条    -->
            <div class="progressBarWrapper">
              <!--    黄色进度条    -->
              <img class="yellowProgressBarImg" src="../../../../src/assets/static/membership/a6.png">
              <!--    黑色进度条    -->
              <img class="blackProgressBarImg" src="../../../../src/assets/static/membership/a2.png">
            </div>
            <!--    右侧皇冠    -->
            <div class="crownImgWrapper">
              <img class="crownImg" src="../../../../src/assets/static/membership/a7.png">
            </div>
          </div>
          <!--    达到下一个会员等级所需积分    -->
          <div class="grandsAndPointsWrapper">
            <span class="grandsAndPoints">达到<span>白银</span>需要的积分：<span>300</span></span>
          </div>
        </div>
        <!--    查看等级说明    -->
        <div class="grandDescriptionWrapper">
          <span class="grandDescription">view Tier Benefits</span>
          <img class="forwardImg" src="../../../../src/assets/static/membership/a8.png">
        </div>
      </div>
      <!--    拥有积分和权限    -->
      <div class="youHaveWrapper">
        <div class="youHaveTitleWrapper">
          <img class="titleImg" src="../../../../src/assets/static/membership/1.svg">
          <span class="youHaveTitle">您拥有</span>
        </div>
        <div>
          <img class="pointsBackgroundImg" src="../../../../src/assets/static/membership/2.svg">
          <span class="pointsNum">100</span>
          <span class="wardsPoints">个i.JoozerWards积分</span>
        </div>
        <div class="membershipActionListWrapper">
          <span class="membershipActionListWord">查看我的历史记录</span>
          <img class="actionListForwardImg" src="../../../../src/assets/static/membership/8.svg">
        </div>
        <div class="membershipActionListWrapper1">
          <span class="membershipActionListWord">了解如何获取更多积分</span>
          <img class="actionListForwardImg" src="../../../../src/assets/static/membership/8.svg">
        </div>
        <div class="membershipActionListWrapper2">
          <span class="membershipActionListWord">常见问题</span>
          <img class="actionListForwardImg" src="../../../../src/assets/static/membership/8.svg">
        </div>
      </div>
    </div>
    <!--    取消会员    -->
    <div class="cancelMembershipWrapper">
      <img class="cancelMembershipBackgroundImg" src="../../../../src/assets/static/membership/3.svg">
      <span class="cancelMembership">取消我的i.Jooz会员</span>
    </div>
  </div>
</template>

<script>
import {info} from '@/api/merbership/member'

export default {
  name: 'Middle',
  components: {},
  data() {
    return {
      artical: [
        {}
      ],
      info: {}
    }
  },
  methods: {
    /**
     * 会员详情
     */
    getInfo() {
      const pd = {}
      info(pd)
        .then(res => {
          this.info = res.data.data
        })
    }
  },
  mounted() {
    this.getInfo()
  }
}
</script>

<style scoped>
/*-------------- div居中 -----------------*/
.wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.membershipWrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.revertWrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.membershipTitleWrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.membershipInfoWrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.membershipCardWrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.membershipCardInfoWrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.membershipLevelWrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.membershipProgressWrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.progressBarWrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.crownImgWrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.grandsAndPointsWrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.grandDescriptionWrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.youHaveWrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.youHaveTitleWrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.membershipActionListWrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.membershipActionListWrapper1 {
  display: flex;
  align-items: center;
  justify-content: center;
}

.membershipActionListWrapper2 {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cancelMembershipWrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

/*-------------- span字体 -----------------*/
.membership {
  font-size: 36px;
  font-family: PingFang SC;
  font-weight: bold;
  color: #FFFFFF;
}

.membershipLevel {
  font-size: 43px;
  font-family: Alibaba PuHuiTi;
  font-weight: bold;
  color: #FFFFFF;
}

.grandsAndPoints {
  font-size: 24px;
  font-family: PingFang SC;
  font-weight: 500;
  color: #FFFFFF;
}

.grandDescription {
  font-size: 24px;
  font-family: PingFang SC;
  font-weight: 500;
  color: #FFFFFF;
}

.youHaveTitle {
  font-size: 30px;
  font-family: PingFang SC;
  font-weight: bold;
  color: #000000;
  line-height: 44px;
}

.wardsPoints {
  font-size: 26px;
  font-family: PingFang SC;
  font-weight: 500;
  color: #FFFFFF;
}

/*UI没有给，所以先用和 个i.JoozerWards积分 一样的字体*/
.pointsNum {
  font-size: 26px;
  font-family: PingFang SC;
  font-weight: 500;
  color: #FFFFFF;
}

.membershipActionListWord {
  background: #FFFFFF;
  box-shadow: 0px 7px 23px 1px rgba(180, 180, 180, 0.4);
  border-radius: 16px;
}

.cancelMembership {
  font-size: 24px;
  font-family: PingFang SC;
  font-weight: 500;
  color: #FFFFFF;
  line-height: 640px;
}

/*-------------- img图片 -----------------*/
.revertImg {
  width: 17px;
  height: 29px;
}

.yellowProgressBarImg {
  width: 300.6px;
  height: 15px;
}

.blackProgressBarImg {
  width: 580.4px;
  height: 15px;
}

.crownImg {
  width: 43px;
  height: 42px;
}

.forwardImg {
  width: 8px;
  height: 14px;
}

.titleImg {
  width: 59px;
  height: 79px;
}

.pointsBackgroundImg {
  width: 642px;
  height: 68px;
}

.actionListForwardImg {
  width: 11px;
  height: 18px;
}

.cancelMembershipBackgroundImg {
  width: 651px;
  height: 142px;
}
</style>
